package com.ruoyi.dictionaries.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.TreeEntity;

/**
 * 地区管理对象 regions
 *
 * @author gdslovehy
 * @date 2025-04-07
 */
public class Regions extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private String id;

    /** 地区名称 */
    @Excel(name = "地区名称")
    private String name;

    private int level;

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public int getLevel() {
		return level;
	}

	public void setLevel(int level) {
		this.level = level;
	}

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("level", getLevel())
            .append("parentId", getParentId())
            .toString();
    }
}
